﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Main.master" AutoEventWireup="true" CodeBehind="Reports.aspx.cs" Inherits="EntryExit.Reports" %>

<%@ Register Assembly="DevExpress.XtraReports.v12.2.Web, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.XtraReports.Web" TagPrefix="dx" %>

<asp:Content ID="reportMainAreaContent" ContentPlaceHolderID="MainContent" runat="server">
  
    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" HeaderText="Reports" Width="100%" runat="server" HorizontalAlign="Center">
        <HeaderStyle HorizontalAlign="Center" Font-Bold="True" Font-Size="Medium" />
        <PanelCollection>
            <dx:HtmlEditorRoundPanelContent>
                <table width="100%">
                    <tr>
                        <td align="right">
                            <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="Report Type : "></dx:ASPxLabel>
                        </td>
                        
                        <td align="left">
                            <asp:DropDownList ID="ddlReportType" AutoPostBack="false" runat="server">
                                <asp:ListItem>Low Work Hours</asp:ListItem>
                                <asp:ListItem>Over Work Hours</asp:ListItem>
                                <asp:ListItem>Late In</asp:ListItem>
                                <asp:ListItem>Early Out</asp:ListItem>
                                <asp:ListItem>Attendance Report</asp:ListItem>
                                <asp:ListItem>Leave Report</asp:ListItem>
                                <asp:ListItem>Unauthorised Absence</asp:ListItem>
                                <asp:ListItem>Detailed Report</asp:ListItem>
                                <asp:ListItem>Insider Report</asp:ListItem>
                                 <asp:ListItem>Less than 4 hours</asp:ListItem>
                                <asp:ListItem>Less than 7 hours</asp:ListItem>
                                <asp:ListItem>Less than 8 hours</asp:ListItem>
                                <%--<asp:ListItem>Less than 40 hours</asp:ListItem>
                                <asp:ListItem>Less than 160 hours</asp:ListItem>--%>
                            </asp:DropDownList>
                        </td>
                        <td align="right">
                            <dx:ASPxLabel ID="lblMonth" runat="server" Text="Start Date :"></dx:ASPxLabel>
                        </td>
                        <td align="left">
                                <dx:ASPxDateEdit ID="calendarStart" runat="server" DisplayFormatString="dd/MM/yyyy" EditFormat="Custom" EditFormatString="dd/MM/yyyy">
                                    <CalendarProperties ShowClearButton="False" ShowTodayButton="False" ShowWeekNumbers="False"   >
                                    </CalendarProperties>
                                </dx:ASPxDateEdit>
                            
                        </td>
                        <td align="right">
                            <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="End Date :"></dx:ASPxLabel>
                        </td>
                        <td align="left">

                            <dx:ASPxDateEdit ID="calendarEnd" runat="server" DisplayFormatString="dd/MM/yyyy" EditFormat="Custom" EditFormatString="dd/MM/yyyy">
                                <CalendarProperties ShowClearButton="False" ShowTodayButton="False" ShowWeekNumbers="False">
                                </CalendarProperties>
                            </dx:ASPxDateEdit>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" colspan="3">
                            <dx:ASPxButton ID="btnGroupedSelection" runat="server" Text="Enable Grouped Selection" Theme="Office2010Black" OnClick="btnGroupSelection_Click"></dx:ASPxButton>
                            </td>
                        <td align="left" colspan="3">
                            <dx:ASPxButton ID="btnGenReport" runat="server" Text="Generate Report" Theme="Office2010Black" OnClick="btnGenReport_Click"></dx:ASPxButton>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="6">
                            <dx:ASPxLabel ID="lblError" runat="server" Text="Error" Visible="False" ForeColor="#FF3300" Font-Bold="True"></dx:ASPxLabel>
                        </td>
                    </tr>
                </table>
            </dx:HtmlEditorRoundPanelContent>

        </PanelCollection>
    </dx:ASPxRoundPanel>
    <dx:ReportToolbar ID="reportToolbar" Width="100%" ReportViewerID="reportViewer" runat='server' Theme="Office2010Black">
        <Items>
            <dx:ReportToolbarButton Enabled='False' ItemKind='FirstPage' />
            <dx:ReportToolbarButton Enabled='False' ItemKind='PreviousPage' />
            <dx:ReportToolbarLabel ItemKind='PageLabel' />
            <dx:ReportToolbarComboBox ItemKind='PageNumber' Width='65px'></dx:ReportToolbarComboBox>
            <dx:ReportToolbarLabel ItemKind='OfLabel' />
            <dx:ReportToolbarTextBox ItemKind='PageCount' />
            <dx:ReportToolbarButton ItemKind='NextPage' />
            <dx:ReportToolbarButton ItemKind='LastPage' />
            <dx:ReportToolbarSeparator />
            <dx:ReportToolbarButton ItemKind='SaveToDisk' />
            <dx:ReportToolbarButton ItemKind='SaveToWindow' />
            <dx:ReportToolbarComboBox ItemKind='SaveFormat' Width='70px'>
                <Elements>
                    <dx:ListElement Value='xls' />
                    <dx:ListElement Value='xlsx' />
                    <dx:ListElement Value='pdf' />
                </Elements>
            </dx:ReportToolbarComboBox>
        </Items>
        <Styles>
            <LabelStyle>
                <Margins MarginLeft='3px' MarginRight='3px' />
            </LabelStyle>
        </Styles>
    </dx:ReportToolbar>
   <dx:ReportViewer ID="reportViewer" runat="server" Width="100%" Height="100%" OnUnload ="reportViewer_Unload"></dx:ReportViewer>
</asp:Content>
<%--<asp:Content ID="OptionsContent" ContentPlaceHolderID="RightContent" runat="server">
    <dx:ASPxSplitter ID="treeViewSplitter" Visible ="true" Orientation="Vertical" runat="server" Width="100%" Height="100%" AllowResize="False" Font-Size="Medium">
        <Panes>
            <dx:SplitterPane ScrollBars="Auto" Size="100%">
                <Separators Visible="False" />
                <ContentCollection>
                    <dx:SplitterContentControl>
                        <dx:ASPxTreeView ID="subOrdinatesTreeView" Width="100%" runat="server" AllowSelectNode="true" OnNodeClick="subOrdinatesTreeView_NodeClick" Theme="SoftOrange" AllowCheckNodes="True">
                        </dx:ASPxTreeView>
                    </dx:SplitterContentControl>
                </ContentCollection>
            </dx:SplitterPane>
        </Panes>
    </dx:ASPxSplitter>
</asp:Content>--%>